package com.tanhua.dubbo.api;

import com.tanhua.domain.db.UserInfo;
import com.tanhua.domain.vo.PageResult;

import java.util.List;

public interface UserInfoApi {
    //添加用户信息
    void add(UserInfo userInfo);
    //更新用户信息
    void update(UserInfo userInfo);
    //查找用户
    UserInfo findUserById(Long userId);
    //批量查找用户
    List<UserInfo> findByBatchIds(List<Long> ids);

    Long findLoveAndFan(Long longInUserId);

    Long findLove(Long longInUserId);

    Long findFan(Long longInUserId);

    PageResult findEachAttention(Long longInUserId, Long page, Long pagesize);

    PageResult findPggeLove(Long longInUserId, Long page, Long pagesize);

    PageResult findPageFans(Long longInUserId, Long page, Long pagesize);

    PageResult findPageLook(Long longInUserId, Long page, Long pagesize);

    Boolean likeFences(Long userId, Long likeId);

    List<UserInfo> findAlluser();
}
